home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7405 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  2.1 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 62 6c | 61 63 6b 2e 77 65 65 67 |Path: bl|ack.weeg|
|00000010| 2e 75 69 6f 77 61 2e 65 | 64 75 21 72 6f 62 69 6e |.uiowa.e|du!robin|
|00000020| 73 6f 6e 0a 46 72 6f 6d | 3a 20 54 68 65 20 41 6d |son.From|: The Am|
|00000030| 6f 72 70 68 6f 75 73 20 | 4d 61 73 73 20 3c 72 6f |orphous |Mass <ro|
|00000040| 62 69 6e 73 6f 6e 40 62 | 6c 75 65 2e 77 65 65 67 |binson@b|lue.weeg|
|00000050| 2e 75 69 6f 77 61 2e 65 | 64 75 3e 0a 4e 65 77 73 |.uiowa.e|du>.News|
|00000060| 67 72 6f 75 70 73 3a 20 | 63 6f 6d 70 2e 6c 61 6e |groups: |comp.lan|
|00000070| 67 2e 70 6c 31 2c 63 6f | 6d 70 2e 6c 61 6e 67 2e |g.pl1,co|mp.lang.|
|00000080| 63 0a 53 75 62 6a 65 63 | 74 3a 20 52 65 3a 20 50 |c.Subjec|t: Re: P|
|00000090| 4c 2f 49 20 61 6e 64 20 | 43 0a 44 61 74 65 3a 20 |L/I and |C.Date: |
|000000a0| 4d 6f 6e 2c 20 32 36 20 | 46 65 62 20 31 39 39 36 |Mon, 26 |Feb 1996|
|000000b0| 20 30 30 3a 35 34 3a 30 | 32 20 2d 30 36 30 30 0a | 00:54:0|2 -0600.|
|000000c0| 4f 72 67 61 6e 69 7a 61 | 74 69 6f 6e 3a 20 55 6e |Organiza|tion: Un|
|000000d0| 69 76 65 72 73 69 74 79 | 20 6f 66 20 49 6f 77 61 |iversity| of Iowa|
|000000e0| 2c 20 49 6f 77 61 20 43 | 69 74 79 2c 20 49 41 2c |, Iowa C|ity, IA,|
|000000f0| 20 55 53 41 0a 44 69 73 | 74 72 69 62 75 74 69 6f | USA.Dis|tributio|
|00000100| 6e 3a 20 77 6f 72 6c 64 | 0a 4d 65 73 73 61 67 65 |n: world|.Message|
|00000110| 2d 49 44 3a 20 3c 50 69 | 6e 65 2e 41 33 32 2e 33 |-ID: <Pi|ne.A32.3|
|00000120| 2e 39 31 2e 39 36 30 32 | 32 36 30 30 34 33 31 31 |.91.9602|26004311|
|00000130| 2e 31 39 31 34 38 42 2d | 31 30 30 30 30 30 40 62 |.19148B-|100000@b|
|00000140| 6c 61 63 6b 2e 77 65 65 | 67 2e 75 69 6f 77 61 2e |lack.wee|g.uiowa.|
|00000150| 65 64 75 3e 0a 4e 4e 54 | 50 2d 50 6f 73 74 69 6e |edu>.NNT|P-Postin|
|00000160| 67 2d 48 6f 73 74 3a 20 | 62 6c 61 63 6b 2e 77 65 |g-Host: |black.we|
|00000170| 65 67 2e 75 69 6f 77 61 | 2e 65 64 75 0a 4d 69 6d |eg.uiowa|.edu.Mim|
|00000180| 65 2d 56 65 72 73 69 6f | 6e 3a 20 31 2e 30 0a 43 |e-Versio|n: 1.0.C|
|00000190| 6f 6e 74 65 6e 74 2d 54 | 79 70 65 3a 20 54 45 58 |ontent-T|ype: TEX|
|000001a0| 54 2f 50 4c 41 49 4e 3b | 20 63 68 61 72 73 65 74 |T/PLAIN;| charset|
|000001b0| 3d 55 53 2d 41 53 43 49 | 49 0a 58 2d 53 65 6e 64 |=US-ASCI|I.X-Send|
|000001c0| 65 72 3a 20 72 6f 62 69 | 6e 73 6f 6e 40 62 6c 61 |er: robi|nson@bla|
|000001d0| 63 6b 2e 77 65 65 67 2e | 75 69 6f 77 61 2e 65 64 |ck.weeg.|uiowa.ed|
|000001e0| 75 0a 49 6e 2d 52 65 70 | 6c 79 2d 54 6f 3a 20 3c |u.In-Rep|ly-To: <|
|000001f0| 34 67 72 68 74 76 24 73 | 33 31 40 67 6f 61 6e 6e |4grhtv$s|31@goann|
|00000200| 61 2e 63 73 2e 72 6d 69 | 74 2e 45 44 55 2e 41 55 |a.cs.rmi|t.EDU.AU|
|00000210| 3e 20 0a 0a 4f 6e 20 32 | 36 20 46 65 62 20 31 39 |> ..On 2|6 Feb 19|
|00000220| 39 36 2c 20 2b 2b 20 72 | 6f 62 69 6e 20 77 72 6f |96, ++ r|obin wro|
|00000230| 74 65 3a 0a 0a 3e 20 20 | 20 20 41 6e 64 20 77 68 |te:..> | And wh|
|00000240| 61 74 20 68 61 70 70 65 | 6e 73 20 77 68 65 6e 20 |at happe|ns when |
|00000250| 79 6f 75 20 61 63 74 75 | 61 6c 6c 79 20 77 2a 61 |you actu|ally w*a|
|00000260| 2a 6e 2a 74 20 61 20 7a | 65 72 6f 20 62 79 74 65 |*n*t a z|ero byte|
|00000270| 20 69 6e 20 79 6f 75 72 | 0a 3e 20 43 20 63 68 61 | in your|.> C cha|
|00000280| 72 61 63 74 65 72 20 73 | 74 72 69 6e 67 3f 0a 0a |racter s|tring?..|
|00000290| 20 20 55 73 65 20 61 20 | 73 74 61 6e 64 61 72 64 | Use a |standard|
|000002a0| 20 64 65 63 6c 61 72 61 | 74 69 6f 6e 20 28 63 68 | declara|tion (ch|
|000002b0| 61 72 5b 5d 20 6f 72 20 | 63 68 61 72 20 2a 29 20 |ar[] or |char *) |
|000002c0| 61 6e 64 20 6d 65 6d 63 | 6d 70 28 29 2c 20 6d 65 |and memc|mp(), me|
|000002d0| 6d 63 70 79 28 29 2c 20 | 65 74 63 2e 0a 4a 75 73 |mcpy(), |etc..Jus|
|000002e0| 74 20 62 65 63 61 75 73 | 65 20 74 68 65 20 73 74 |t becaus|e the st|
|000002f0| 72 78 78 78 20 66 61 6d | 69 6c 79 20 6f 66 20 66 |rxxx fam|ily of f|
|00000300| 75 6e 63 74 69 6f 6e 73 | 20 65 78 70 65 63 74 20 |unctions| expect |
|00000310| 61 20 6e 75 6c 2d 74 65 | 72 6d 69 6e 61 74 65 64 |a nul-te|rminated|
|00000320| 20 0a 73 74 72 69 6e 67 | 20 64 6f 65 73 6e 27 74 | .string| doesn't|
|00000330| 20 6d 65 61 6e 20 74 68 | 61 74 20 43 20 69 73 20 | mean th|at C is |
|00000340| 69 6e 63 61 70 61 62 6c | 65 20 6f 66 20 64 65 61 |incapabl|e of dea|
|00000350| 6c 69 6e 67 20 77 69 74 | 68 20 61 6e 79 74 68 69 |ling wit|h anythi|
|00000360| 6e 67 20 65 6c 73 65 2e | 20 20 49 20 0a 77 72 69 |ng else.| I .wri|
|00000370| 74 65 20 43 20 70 72 6f | 67 72 61 6d 73 20 74 68 |te C pro|grams th|
|00000380| 61 74 20 69 6e 74 65 72 | 66 61 63 65 20 77 69 74 |at inter|face wit|
|00000390| 68 20 4f 52 41 43 4c 45 | 37 2c 20 77 68 69 63 68 |h ORACLE|7, which|
|000003a0| 20 64 6f 65 73 6e 27 74 | 20 6e 75 6c 2d 74 65 72 | doesn't| nul-ter|
|000003b0| 6d 69 6e 61 74 65 20 0a | 73 74 72 69 6e 67 73 20 |minate .|strings |
|000003c0| 61 6e 64 20 49 20 68 61 | 76 65 6e 27 74 20 72 75 |and I ha|ven't ru|
|000003d0| 6e 20 69 6e 74 6f 20 61 | 6e 79 20 74 72 6f 75 62 |n into a|ny troub|
|000003e0| 6c 65 20 79 65 74 2e 20 | 20 46 6f 72 20 74 68 61 |le yet. | For tha|
|000003f0| 74 20 6d 61 74 74 65 72 | 2c 20 79 6f 75 20 0a 63 |t matter|, you .c|
|00000400| 6f 75 6c 64 20 64 65 63 | 6c 61 72 65 20 61 6e 20 |ould dec|lare an |
|00000410| 61 72 72 61 79 20 6f 66 | 20 6c 6f 6e 67 73 20 6f |array of| longs o|
|00000420| 72 20 50 61 73 63 61 6c | 2d 6c 69 6b 65 20 73 74 |r Pascal|-like st|
|00000430| 72 69 6e 67 73 20 77 69 | 74 68 20 6c 65 6e 67 74 |rings wi|th lengt|
|00000440| 68 20 62 79 74 65 73 20 | 0a 61 74 20 74 68 65 20 |h bytes |.at the |
|00000450| 62 65 67 69 6e 6e 69 6e | 67 20 61 6e 64 20 77 68 |beginnin|g and wh|
|00000460| 69 70 20 75 70 20 61 20 | 73 65 74 20 6f 66 20 72 |ip up a |set of r|
|00000470| 6f 75 74 69 6e 65 73 20 | 74 6f 20 74 72 65 61 74 |outines |to treat|
|00000480| 20 74 68 6f 73 65 20 61 | 73 20 73 74 72 69 6e 67 | those a|s string|
|00000490| 73 2e 0a 54 68 61 74 27 | 73 20 74 68 65 20 61 64 |s..That'|s the ad|
|000004a0| 76 61 6e 74 61 67 65 20 | 6f 66 20 61 20 6c 61 6e |vantage |of a lan|
|000004b0| 67 75 61 67 65 20 77 68 | 69 63 68 20 5f 64 6f 65 |guage wh|ich _doe|
|000004c0| 73 6e 27 74 5f 20 68 61 | 76 65 20 73 74 72 69 6e |sn't_ ha|ve strin|
|000004d0| 67 20 66 65 61 74 75 72 | 65 73 20 0a 62 75 69 6c |g featur|es .buil|
|000004e0| 74 20 69 6e 2e 20 3a 29 | 0a 0a 20 20 49 6e 63 69 |t in. :)|.. Inci|
|000004f0| 64 65 6e 74 61 6c 6c 79 | 2c 20 49 27 6d 20 74 68 |dentally|, I'm th|
|00000500| 65 20 6f 64 64 20 6d 61 | 6e 20 6f 75 74 20 69 6e |e odd ma|n out in|
|00000510| 20 61 20 50 4c 2f 49 20 | 73 68 6f 70 2c 20 73 6f | a PL/I |shop, so|
|00000520| 20 49 20 61 6d 20 6e 6f | 74 20 69 67 6e 6f 72 61 | I am no|t ignora|
|00000530| 6e 74 20 0a 6f 66 20 50 | 4c 2f 49 20 61 6e 64 20 |nt .of P|L/I and |
|00000540| 49 20 74 68 69 6e 6b 20 | 69 74 27 73 20 76 65 72 |I think |it's ver|
|00000550| 79 20 77 65 6c 6c 2d 73 | 75 69 74 65 64 20 74 6f |y well-s|uited to|
|00000560| 20 74 68 65 20 77 6f 72 | 6b 20 69 74 27 73 20 70 | the wor|k it's p|
|00000570| 75 74 20 74 6f 20 74 68 | 65 72 65 20 0a 28 72 65 |ut to th|ere .(re|
|00000580| 61 64 69 6e 67 20 66 69 | 78 65 64 2d 6c 65 6e 67 |ading fi|xed-leng|
|00000590| 74 68 20 72 65 63 6f 72 | 64 2d 6f 72 69 65 6e 74 |th recor|d-orient|
|000005a0| 65 64 20 66 69 6c 65 73 | 2c 20 6d 75 63 6b 69 6e |ed files|, muckin|
|000005b0| 67 20 77 69 74 68 20 74 | 68 65 20 63 6f 6e 74 65 |g with t|he conte|
|000005c0| 6e 74 73 20 61 6e 64 20 | 0a 77 72 69 74 69 6e 67 |nts and |.writing|
|000005d0| 20 62 61 63 6b 20 74 6f | 20 66 69 78 65 64 2d 6c | back to| fixed-l|
|000005e0| 65 6e 67 74 68 20 72 65 | 63 6f 72 64 2d 6f 72 69 |ength re|cord-ori|
|000005f0| 65 6e 74 65 64 20 66 69 | 6c 65 73 29 2e 20 20 49 |ented fi|les). I|
|00000600| 27 6d 20 6e 6f 74 20 6c | 6f 6f 6b 69 6e 67 20 0a |'m not l|ooking .|
|00000610| 66 6f 72 77 61 72 64 20 | 74 6f 20 74 65 6c 6c 69 |forward |to telli|
|00000620| 6e 67 20 74 68 65 6d 20 | 74 68 61 74 20 74 68 65 |ng them |that the|
|00000630| 20 63 6c 65 61 72 2c 20 | 73 69 6d 70 6c 65 20 66 | clear, |simple f|
|00000640| 69 6c 65 20 6d 61 70 70 | 69 6e 67 73 20 61 6e 64 |ile mapp|ings and|
|00000650| 20 0a 72 65 61 64 2f 77 | 72 69 74 65 73 20 74 68 | .read/w|rites th|
|00000660| 65 79 27 72 65 20 75 73 | 65 64 20 74 6f 20 63 61 |ey're us|ed to ca|
|00000670| 6e 27 74 20 62 65 20 64 | 6f 6e 65 20 61 73 20 61 |n't be d|one as a|
|00000680| 62 73 74 72 61 63 74 6c | 79 20 69 6e 20 43 2e 20 |bstractl|y in C. |
|00000690| 20 42 75 74 20 0a 74 68 | 61 74 27 73 20 5f 76 65 | But .th|at's _ve|
|000006a0| 72 79 5f 20 64 69 66 66 | 65 72 65 6e 74 20 66 72 |ry_ diff|erent fr|
|000006b0| 6f 6d 20 73 61 79 69 6e | 67 20 74 68 61 74 20 74 |om sayin|g that t|
|000006c0| 68 65 79 20 63 61 6e 27 | 74 20 62 65 20 64 6f 6e |hey can'|t be don|
|000006d0| 65 2e 20 20 41 6e 64 20 | 6d 79 20 0a 65 78 65 63 |e. And |my .exec|
|000006e0| 75 74 61 62 6c 65 73 20 | 61 72 65 20 61 20 6c 6f |utables |are a lo|
|000006f0| 74 20 73 6d 61 6c 6c 65 | 72 20 61 6e 64 20 61 20 |t smalle|r and a |
|00000700| 6c 6f 74 20 66 61 73 74 | 65 72 20 74 68 65 6e 20 |lot fast|er then |
|00000710| 74 68 65 69 72 73 20 61 | 72 65 2e 20 3a 29 0a 0a |theirs a|re. :)..|
|00000720| 2f 2a 2a 4a 61 6d 65 73 | 20 52 6f 62 69 6e 73 6f |/**James| Robinso|
|00000730| 6e 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |n*******|********|
|00000740| 2a 2a 2a 2a 2a 2a 2a 2a | 20 20 20 20 20 20 20 20 |********| |
|00000750| 20 20 20 20 0a 20 20 22 | 41 6e 20 69 6d 70 6f 72 | . "|An impor|
|00000760| 74 61 6e 74 20 67 6f 61 | 6c 20 6f 66 20 61 6c 6d |tant goa|l of alm|
|00000770| 6f 73 74 20 65 76 65 72 | 79 20 67 72 61 70 68 69 |ost ever|y graphi|
|00000780| 63 73 20 70 72 6f 67 72 | 61 6d 20 69 73 20 74 6f |cs progr|am is to|
|00000790| 20 64 72 61 77 20 70 69 | 63 74 75 72 65 73 20 6f | draw pi|ctures o|
|000007a0| 6e 0a 20 74 68 65 20 73 | 63 72 65 65 6e 2e 22 20 |n. the s|creen." |
|000007b0| 20 20 20 2d 2d 20 4e 65 | 69 64 65 72 2c 20 44 61 | -- Ne|ider, Da|
|000007c0| 76 69 73 20 26 20 57 6f | 6f 2c 20 5f 4f 70 65 6e |vis & Wo|o, _Open|
|000007d0| 47 4c 5f 50 72 6f 67 72 | 61 6d 6d 69 6e 67 5f 47 |GL_Progr|amming_G|
|000007e0| 75 69 64 65 5f 2c 20 43 | 68 61 70 74 65 72 20 31 |uide_, C|hapter 1|
|000007f0| 30 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |0. | |
|00000800| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000810| 20 20 20 20 20 20 20 20 | 20 2a 2a 2a 2a 2a 2a 2a | | *******|
|00000820| 2a 2a 2a 2a 2a 2a 6a 61 | 6d 65 73 2d 72 6f 62 69 |******ja|mes-robi|
|00000830| 6e 73 6f 6e 40 75 69 6f | 77 61 2e 65 64 75 2a 2a |nson@uio|wa.edu**|
|00000840| 2f 0a 0a | |/.. | |
+--------+-------------------------+-------------------------+--------+--------+